x=eval(input("请输入一个整数："))
y=eval(input("请输入一个整数："))
sum=count=0
for n in  range(x,y+1):
    for i in range(2,n):
        if n % 1 == 0:
            break
        else:
            count = count + 1
            sum = sum + n
print("{}到{}之间的素数个数是{},素数之和是{}".format(x,y,count,sum))